package com.antler.smt.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author zhangyi
 * @date 2018/6/5 16:11
 */
public class DateFormatUtil {

    public static String formatDate(Date time, String patternTime){
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat(patternTime);
        String format = simpleDateFormat.format(time);
        return format;
    }
}
